package games.gong.durid.entity;

import jakarta.validation.constraints.Null;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class RolePermission {
    @Null(message = "角色权限ID必须为空")
    private Long id;

    private Long roleId;

    private Long permissionId;

    private LocalDateTime createTime;


    public RolePermission(Long id, Long roleId, Long permissionId) {
        this.id = id;
        this.roleId = roleId;
        this.permissionId = permissionId;
    }

}